<div class="container">
    <div class="section" id="mysec">
        <volist name="res" id="vo">
            <div class="row">

                <div class="col s12">
                    <div class="card-panel hoverable">
                        <div class="">
                            <div class="left"><h4><a href="details.html">{$vo.title}</a></h4></div>
                            <div class="right" style="margin-top: 20px;">截止时间：<span
                                    class="center-aligne" style="color: red">{$vo.start}~{$vo.end}</span></div>
                            <div class="clearfix"></div>
                        </div>
                        <div class="valign">
                            <p>&emsp;&emsp;<php>
                                <literal>echo mb_substr($vo["content"],0,140);</literal>
                            </php>
                                ……
                            </p>
                        </div>

                        <div class="left" style="color: gray">发布时间：<span
                                class="mui--divider-right">{$vo.addtime}&nbsp;</span>&nbsp;报名人数：<span>{$vo.title|sumPeo=###}/{$vo.num}</span>
                        </div>

                        <div class="right">
                            <if condition="sumPeo($vo['title']) lt $vo['num'] ">
                                <if condition="time() lt strtotime($vo['end']) "><a
                                        class="waves-effect waves-light btn red"
                                        href="{:U('Stuform/index',array('title'=>$vo['title']))}">报名</a>
                                    <else/>
                                    <a class="waves-effect waves-light btn disabled red">报名已过期</a>
                                </if>
                                <else/>
                                <a class="waves-effect waves-light btn disabled red">报名已满</a>
                            </if>

                            <a class="waves-effect waves-light btn green"
                               href="{:U('Details/index',array('id'=>$vo['id']))}">查看详情</a>
                        </div>
                        <div class="clearfix"></div>


                    </div>
                </div>
            </div>
        </volist>


        <ul class="pagination center">
            <!--<li class="disabled"><a href="#!"><i class="material-icons">chevron_left</i></a></li>-->
            <!--<li class="active"><a href="#!">1</a></li>-->
            <!--<li class="waves-effect"><a href="#!">2</a></li>-->
            <!--<li class="waves-effect"><a href="#!">3</a></li>-->
            <!--<li class="waves-effect"><a href="#!">4</a></li>-->
            <!--<li class="waves-effect"><a href="#!">5</a></li>-->
            <!--<li class="waves-effect"><a href="#!"><i class="material-icons">chevron_right</i></a></li>-->
            {$page}
        </ul>
    </div>


</div>
